﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using CIniFileLib;

namespace ConsoleAppTest
{
    class Program
    {
        static void Main(string[] args)
        {
            string path = AppDomain.CurrentDomain.BaseDirectory+"iniFile.ini";
            CIniFile cif = new CIniFile(path);

            /*if (cif.ExistINIFile() == false)
            {
                Console.WriteLine(path + "文件不存在！");
                Console.ReadLine();
            }
            else
            {*/
                cif.IniWriteValue("section","key","value");

                string val = cif.IniReadValue("section", "key");

                Console.WriteLine("val=" + val);
                Console.ReadLine();
            //}
        }
    }
}
